<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>

        // 6. 将对象 {goodsName:'电脑', price:6000, leftCount:99} 
        //中的 price 的值修改为 5999，并且输出该对象
        let obj = { goodsName: '电脑', price: 6000, leftCount: 99 }

        obj.price = 5999
        console.log(obj.price)
    </script>

</body>

</html>